package com.xvyy.tingshu.payment.mapper;

import com.xvyy.tingshu.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PaymentInfoMapper extends BaseMapper<PaymentInfo> {

    @Update("        update payment_info\n" +
            "        set payment_status='1402'\n" +
            "        where payment_status = #{status}\n" +
            "          and order_no = #{orderNo}")
    int updatePaymentStatus(@Param("orderNo") String orderNo, @Param("status") String paymentStatus);
}
